﻿@model TGIApp.Model.TicketType
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>TicketType</legend>
        @{ if (Model != null)
           { 
            <div class="editor-field">
                @Html.DropDownListFor(model => model.EventVenue_Id, new SelectList(ViewBag.EventVenues, "Id", "ShowName", Model.EventVenue_Id))
            </div>
           }
           else
           { 
            <div class="editor-field">
                @Html.DropDownListFor(model => model.EventVenue_Id, new SelectList(ViewBag.EventVenues, "Id", "ShowName"))
            </div>
           }
        }
        <div class="editor-label">
            @Html.LabelFor(model => model.Class)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Class)
            @Html.ValidationMessageFor(model => model.Class)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Description)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Description)
            @Html.ValidationMessageFor(model => model.Description)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Price)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Price)
            @Html.ValidationMessageFor(model => model.Price)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.TotalSeats)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.TotalSeats)
            @Html.ValidationMessageFor(model => model.TotalSeats)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.AllottedSeats)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.AllottedSeats)
            @Html.ValidationMessageFor(model => model.AllottedSeats)
        </div>
        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}
